/*
 * Copyright (c) 2015 MONKEYK Information Technology Co. Ltd
 * www.monkeyk.com
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * MONKEYK Information Technology Co. Ltd ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you
 * entered into with MONKEYK Information Technology Co. Ltd.
 */
package com.feng.oauth2.oauth.infrastructure.jdbc;

import com.feng.oauth2.oauth.domain.userUrl.UserUrls;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class UserUrlRowMapper implements RowMapper<UserUrls> {


    public UserUrlRowMapper() {
    }

    @Override
    public UserUrls mapRow(ResultSet rs, int i) throws SQLException {
        UserUrls userUrls = new UserUrls();

        userUrls.setId(rs.getInt("id"));
        userUrls.setUsername(rs.getString("username"));
        userUrls.setWebUrl(rs.getString("web_url"));

        return userUrls;
    }
}
